package org.koyad.portal.tags;

import java.util.HashMap;
import java.util.Map;

import org.koyad.portal.utils.LogUtils;

/**
 * Super class for all the tags
 * 
 * @author sshailen
 * 
 */
public abstract class BaseTagStore {

	private static final LogUtils LOGGER = LogUtils.getLogger(BaseTagStore.class);

	private Map<Object, Object> _store = null;
	
	public void set(Object key, Object value) {
		if(_store == null) {
			_store = new HashMap<Object, Object>();
		}
		_store.put(key, value);
	}
	
	public Object get(Object key) {
		if(null == _store) {
			return null;
		}
		return _store.get(key);
	}
}
